<div id="maincontent">
	<div id="content">
    <div class="box1">
      <h3><?php echo lico_lang('general', 'editmachine.page.title1'); ?></h3>
      <?php
      if (isset($_GET['a']) && intval($_GET['a']) >= 1) {
        $machineid = intval($_GET['a']);
      }
      $description = str_replace("#certurl#", "<a href=\"".$lico['baseurl.ssl']."/mcert/".$machineid.".png\">".$lico['baseurl.ssl']."/mcert/".$machineid.".png</a>", lico_lang('general', 'editmachine.page.description1'));
      $description = str_replace("#publicurl#", "<a href=\"".$lico['baseurl.ssl']."/machine/".$machineid.".html\">".$lico['baseurl.ssl']."/machine/".$machineid.".html</a>", lico_lang('general', 'editmachine.page.description1'));
      ?>
        <div id="personal-certificate">
          
          <div id="certificate">
            <label class="certificate-label"><?php echo $description; ?></label>
            <span class="certificate-value"><a href="<?php echo $lico['baseurl.ssl']; ?>/machine/<?php echo $machineid; ?>.html"><img src="/mcert/<?php echo $machineid; ?>.png" alt="Certificate for machine #<?php echo $machineid; ?>" title="Certificate for machine #<?php echo $machineid; ?>"/></a></span>
          </div>
          
          
        </div>
    </div>
    
    
    
    <div class="box2">
      <h3><?php echo lico_lang('general', 'editmachine.page.title2'); ?></h3>
      <div class="description"><?php echo lico_lang('general', 'editmachine.page.description2'); ?></div>
      
      
<?php

if (isset($_GET['a']) && intval($_GET['a']) >= 1) {
  $machineid = intval($_GET['a']);
  $select = "SELECT *, UNIX_TIMESTAMP(f_ctime) AS ctime, UNIX_TIMESTAMP(f_mtime) AS mtime FROM `machines` WHERE `f_key`='".lico_ESC($machineid)."' AND `owner`='".lico_ESC($_SESSION['userid'])."'";
	$ret = $db->getAll_assoc($select);
	if (count($ret) <= 0) {
  } else {
		$id = intval($ret[0]['f_key']);
    $ctime = date("Y/m/d, h:ia", intval($ret[0]['ctime']));
    $mtime = date("Y/m/d, h:ia", intval($ret[0]['mtime']));
    $name = trim($ret[0]['name']);
    $select = "SELECT * FROM `processors` WHERE `f_key`='".lico_ESC($ret[0]['cpu'])."'";
    $selcpu = $db->unbuffered_query_first($select);
    $cpu = trim($selcpu[1]);
    if (trim($selcpu[2]) != "")
      $cpu .= " @ ".trim($selcpu[2]);
    $cpunum = intval($ret[0]['cpunum']);
    $accounts = intval($ret[0]['accounts']);
    $country = trim($ret[0]['country']);
    $disk = intval($ret[0]['disk']);
    $distribution = trim($ret[0]['distribution']);
    $distversion = trim($ret[0]['distversion']);
    $mailer = trim($ret[0]['mailer']);
    $memory = intval($ret[0]['memory']);
    $network = trim($ret[0]['network']);
    $purpose = trim($ret[0]['purpose']);
    $source = trim($ret[0]['source']);
    $users = intval($ret[0]['users']);
    $sysclass = trim($ret[0]['sysclass']);
    
    $diskfree = intval($ret[0]['diskfree']);
    $memfree = intval($ret[0]['memfree']);
    $swap = intval($ret[0]['swap']);
    $swapfree = intval($ret[0]['swapfree']);
    $cpuflags = trim($ret[0]['cpuflags']);
    $arch = trim($ret[0]['arch']);
    $kernel = trim($ret[0]['kernel']);
    $kcoresize = intval($ret[0]['kcoresize']);
    
    $publish_hostname = trim($ret[0]['publish_hostname']);
    $publish_versions = trim($ret[0]['publish_versions']);
    $publish_cpuinfo = trim($ret[0]['publish_cpuinfo']);
    $publish_sizeinfo = trim($ret[0]['publish_sizeinfo']);
    $isactive = trim($ret[0]['isactive']);
    
    
    $update_key = trim($ret[0]['update_key']);
    if ($update_key == "") {
      $update_key = lico_GenRandomString(24, PWD_ALLOW_ALL);
      $db->query("UPDATE `machines` SET `update_key`='".lico_ESC($update_key)."' WHERE `f_key`='".lico_ESC($id)."' AND `owner`='".lico_ESC($_SESSION['userid'])."'");
    }
    
    if (preg_match("`,`", $purpose)) {
      $purpose = explode(",", $purpose);
    } else {
      $purpose = array($purpose);
    }
    $porposealternative = "";
    if (!in_array($purpose[count($purpose)-1], $lico['purposes']))
      $porposealternative = $purpose[count($purpose)-1];
    $out .= "     <form name=\"editmachine\" action=\"/success.html\" method=\"post\">\n";
    $out .= "       <div class=\"formitem odd\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'name').":</label>\n";
    $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[name]\" value=\"".$name."\"/></span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem even\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'update_key').":</label>\n";
    $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[update_key]\" value=\"".$update_key."\"/></span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem odd\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'country').":</label>\n";
    $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[country]\" size=\"3\" maxlength=\"2\" value=\"".$country."\"/></span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem even\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'purpose').":</label>\n";
    $out .= "         <span class=\"forminput checkpurpose\">\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'workstation')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"workstation\"".(in_array('workstation', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'www.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"www.server\"".(in_array('www.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'ftp.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"ftp.server\"".(in_array('ftp.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'mail.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"mail.server\"".(in_array('mail.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'dns.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"dns.server\"".(in_array('dns.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'file.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"file.server\"".(in_array('file.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'database.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"database.server\"".(in_array('database.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'router')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"router\"".(in_array('router', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'firewall')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"firewall\"".(in_array('firewall', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'toy')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"toy\"".(in_array('toy', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'learning')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"learning\"".(in_array('learning', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'programming')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"programming\"".(in_array('programming', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'game.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"game.server\"".(in_array('game.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'media.center')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"media.center\"".(in_array('media.center', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"checkbox\">\n";
    $out .= "             <label class=\"checkboxlabel\">".lico_lang('general', 'other.server')."</label>";
    $out .= "             <input class=\"formcheckboxes\" name=\"lico[purpose][]\" type=checkbox value=\"other.server\"".(in_array('other.server', $purpose)?" checked=\"checked\"":"")."/>\n";
    $out .= "           </div>\n";
    $out .= "           <div class=\"inputbox\">\n";
    $out .= "             <label class=\"inputboxlabel\">".lico_lang('general', 'other.purpose')."</label>";
    $out .= "             <input class=\"formcheckalternative\" name=\"lico[alternatepurpose]\" size=\"55\" maxlength=\"40\" value=\"".$porposealternative."\"/>\n";
    $out .= "           </div>\n";
    $out .= "         </span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem odd\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'sysclass').":</label>\n";
    $out .= "         <span class=\"forminput\">\n";
    $out .= "           <select name=\"lico[sysclass]\">\n";
    $out .= "             <option value=\"\"".($sysclass==""?" selected=\"selected\"":"").">-- ".lico_lang('general', 'not.specified')." --</option>\n";
    $out .= "             <option value=\"smartphone\"".($sysclass=="smartphone"?" selected=\"selected\"":"").">".lico_lang('general', 'smartphone')."</option>\n";
    $out .= "             <option value=\"handheld\"".($sysclass=="handheld"?" selected=\"selected\"":"").">".lico_lang('general', 'handheld')."</option>\n";
    $out .= "             <option value=\"laptop\"".($sysclass=="laptop"?" selected=\"selected\"":"").">".lico_lang('general', 'laptop')."</option>\n";
    $out .= "             <option value=\"workstation\"".($sysclass=="workstation"?" selected=\"selected\"":"").">".lico_lang('general', 'workstation')."</option>\n";
    $out .= "             <option value=\"server\"".($sysclass=="server"?" selected=\"selected\"":"").">".lico_lang('general', 'server')."</option>\n";
    $out .= "             <option value=\"embedded\"".($sysclass=="embedded"?" selected=\"selected\"":"").">".lico_lang('general', 'embedded')." system</option>\n";
    $out .= "             <option value=\"virtualmachine\"".($sysclass=="virtualmachine"?" selected=\"selected\"":"").">".lico_lang('general', 'virtualmachine')." system</option>\n";
    $out .= "             <option value=\"other\"".($sysclass=="other"?" selected=\"selected\"":"").">".lico_lang('general', 'other')."</option>\n";
    $out .= "           </select>\n";
    $out .= "         </span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem even\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'cpu').":</label>\n";
    $out .= "         <span class=\"forminput\"><input id=\"cpuinput\" type=\"text\" name=\"lico[cpu]\" value=\"".$cpu."\"/></span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem odd\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'cpunum').":</label>\n";
    $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[cpunum]\" value=\"".$cpunum."\"/></span>\n";
    $out .= "       </div>\n";

    $out .= "       <div class=\"formitem even\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'arch').":</label>\n";
    $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[arch]\" value=\"".$arch."\"/></span>\n";
    $out .= "       </div>\n";

    $out .= "       <div class=\"formitem odd\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'kernel').":</label>\n";
    $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[kernel]\" value=\"".$kernel."\"/></span>\n";
    $out .= "       </div>\n";

    $out .= "       <div class=\"formitem even\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'network').":</label>\n";
    $out .= "         <span class=\"forminput\">\n";
    $out .= "           <select name=\"lico[network]\">\n";
    $out .= "             <option value=\"none\"".($network=="none"?" selected=\"selected\"":"").">".lico_lang('general', 'none')."</option>\n";
    $out .= "             <option value=\"ethernet\"".($network=="ethernet"?" selected=\"selected\"":"").">".lico_lang('general', 'ethernet')."</option>\n";
    $out .= "             <option value=\"ppp\"".($network=="ppp"?" selected=\"selected\"":"").">".lico_lang('general', 'ppp')."</option>\n";
    $out .= "             <option value=\"slip\"".($network=="slip"?" selected=\"selected\"":"").">".lico_lang('general', 'slip')."</option>\n";
    $out .= "             <option value=\"ax.25\"".($network=="ax25"?" selected=\"selected\"":"").">".lico_lang('general', 'ax.25')."</option>\n";
    $out .= "             <option value=\"isdn\"".($network=="isdn"?" selected=\"selected\"":"").">".lico_lang('general', 'isdn')."</option>\n";
    $out .= "             <option value=\"cable\"".($network=="cable"?" selected=\"selected\"":"").">".lico_lang('general', 'cable')."</option>\n";
    $out .= "             <option value=\"token\"".($network=="tokenring"?" selected=\"selected\"":"").">".lico_lang('general', 'token')."</option>\n";
    $out .= "             <option value=\"uucp\"".($network=="uucp"?" selected=\"selected\"":"").">".lico_lang('general', 'uucp')."</option>\n";
    $out .= "             <option value=\"wireless\"".($network=="wireless"?" selected=\"selected\"":"").">".lico_lang('general', 'wireless')."</option>\n";
    $out .= "             <option value=\"atm\"".($network=="atm"?" selected=\"selected\"":"").">".lico_lang('general', 'atm')."</option>\n";
    $out .= "             <option value=\"adsl\"".($network=="adsl"?" selected=\"selected\"":"").">".lico_lang('general', 'adsl')."</option>\n";
    $out .= "             <option value=\"dsl\"".($network=="dsl"?" selected=\"selected\"":"").">".lico_lang('general', 'dsl')."</option>\n";
    $out .= "             <option value=\"sdsl\"".($network=="sdsl"?" selected=\"selected\"":"").">".lico_lang('general', 'sdsl')."</option>\n";
    $out .= "             <option value=\"other\"".($network=="other"?" selected=\"selected\"":"").">".lico_lang('general', 'other')."</option>\n";
    $out .= "           </select>\n";
    $out .= "         </span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem odd\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'distribution').":</label>\n";
    $out .= "         <span class=\"forminput\">\n";
    $out .= "           <select name=\"lico[distribution]\">\n";
    $out .= "             <option value=\"unknown\"".($distribution=="unknown"?" selected=\"selected\"":"").">".lico_lang('general', 'unknown')."</option>\n";
    for ($d=0; $d<count($lico['distributions']); $d++) {
        $out .= "             <option value=\"".$lico['distributions'][$d]."\"".($distribution==$lico['distributions'][$d]?" selected=\"selected\"":"").">".$lico['distributions'][$d]."</option>\n";
    }
    $out .= "             <option value=\"other\"".($distribution=="other"?" selected=\"selected\"":"").">Other".lico_lang('general', 'other')."</option>\n";
    $out .= "           </select>\n";
    $out .= "         </span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem even\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'distribution.version').":</label>\n";
    $out .= "         <span class=\"forminput\"><input type=\"text\" name=\"lico[distversion]\" value=\"".$distversion."\"/></span>\n";
    $out .= "       </div>\n";
    $out .= "       <div class=\"formitem odd\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'mailer').":</label>\n";
    $out .= "         <span class=\"forminput\">\n";
    $out .= "           <select name=\"lico[mailer]\">\n";
    $out .= "             <option value=\"none\"".($mailer=="none"?" selected=\"selected\"":"").">".lico_lang('general', 'none')."</option>\n";
    $out .= "             <option value=\"unknown\"".($mailer=="unknown"?" selected=\"selected\"":"").">".lico_lang('general', 'unknown')."</option>\n";
    $out .= "             <option value=\"Sendmail\"".($mailer=="Sendmail"?" selected=\"selected\"":"").">Sendmail</option>\n";
    $out .= "             <option value=\"Smail\"".($mailer=="Smail"?" selected=\"selected\"":"").">Smail</option>\n";
    $out .= "             <option value=\"Qmail\"".($mailer=="Qmail"?" selected=\"selected\"":"").">Qmail</option>\n";
    $out .= "             <option value=\"Exim\"".($mailer=="Exim"?" selected=\"selected\"":"").">Exim</option>\n";
    $out .= "             <option value=\"Postfix\"".($mailer=="Postfix"?" selected=\"selected\"":"").">Postfix</option>\n";
    $out .= "             <option value=\"other\"".($mailer=="other"?" selected=\"selected\"":"").">Other".lico_lang('general', 'other')."</option>\n";
    $out .= "           </select>\n";
    $out .= "         </span>\n";
    $out .= "       </div>\n";
    
    $out .= "       <div class=\"formitem even publish ".($publish_hostname=="NO"?"notpublic":"public")."\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_hostname').":</label>\n";
    $out .= "         <span class=\"forminput\"><select name=\"lico[publish_hostname]\"><option value=\"NO\"".($publish_hostname=="NO"?" selected=\"selected\"":"").">NO</option><option value=\"YES\"".($publish_hostname=="YES"?" selected=\"selected\"":"").">YES</option></select></span>\n";
    $out .= "       </div>\n";
  
    $out .= "       <div class=\"formitem odd publish ".($publish_versions=="NO"?"notpublic":"public")."\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_versions').":</label>\n";
    $out .= "         <span class=\"forminput\"><select name=\"lico[publish_versions]\"><option value=\"NO\"".($publish_versions=="NO"?" selected=\"selected\"":"").">NO</option><option value=\"YES\"".($publish_versions=="YES"?" selected=\"selected\"":"").">YES</option></select></span>\n";
    $out .= "       </div>\n";
  
    $out .= "       <div class=\"formitem even publish ".($publish_cpuinfo=="NO"?"notpublic":"public")."\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_cpuinfo').":</label>\n";
    $out .= "         <span class=\"forminput\"><select name=\"lico[publish_cpuinfo]\"><option value=\"NO\"".($publish_cpuinfo=="NO"?" selected=\"selected\"":"").">NO</option><option value=\"YES\"".($publish_cpuinfo=="YES"?" selected=\"selected\"":"").">YES</option></select></span>\n";
    $out .= "       </div>\n";
  
    $out .= "       <div class=\"formitem odd publish ".($publish_sizeinfo=="NO"?"notpublic":"public")."\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'may.publish_sizeinfo').":</label>\n";
    $out .= "         <span class=\"forminput\"><select name=\"lico[publish_sizeinfo]\"><option value=\"NO\"".($publish_sizeinfo=="NO"?" selected=\"selected\"":"").">NO</option><option value=\"YES\"".($publish_sizeinfo=="YES"?" selected=\"selected\"":"").">YES</option></select></span>\n";
    $out .= "       </div>\n";
  
    $out .= "       <div class=\"formitem even isactive ".($isactive=="NO"?"notactive":"active")."\">\n";
    $out .= "         <label class=\"formlabel\">".lico_lang('profile', 'is.active').":</label>\n";
    $out .= "         <span class=\"forminput\"><select name=\"lico[isactive]\"><option value=\"NO\"".($isactive=="NO"?" selected=\"selected\"":"").">NO</option><option value=\"YES\"".($isactive=="YES"?" selected=\"selected\"":"").">YES</option></select></span>\n";
    $out .= "       </div>\n";
  
    
    $out .= "       <div class=\"formsubmit formitem\">\n";
    $out .= "         <input type=\"hidden\" name=\"lico[action]\" value=\"editmachine\"/>\n";
    $out .= "         <input type=\"hidden\" name=\"lico[machineid]\" value=\"".$machineid."\"/>\n";
    $out .= "         <span class=\"formsubmit-button\"><input type=\"submit\" name=\"lico[submit]\" value=\"".lico_lang('profile', 'save.machine')."\"/></span>\n";
    $out .= "       </div>\n";
    $out .= "     </form>\n";
    $out .= "     <script type=\"text/javascript\"> \$('#cpuinput').autocomplete(\"/ajax.php\"); </script>\n";
    echo $out;
  }
}

?>      
      
    </div>
  </div>
</div>
